package com.hyjiacan.apps.audionly.data.model

/**
 * 文件处理进度实体类
 * @property taskId 任务ID
 * @property progress 进度值(0-100)
 * @property speed 处理速度(字节/秒)
 * @property remainingTime 剩余时间(秒)
 */
data class FileProgress(
    val taskId: String,
    var progress: Int,
    var speed: Long,
    var remainingTime: Long
) {
    init {
        // 验证参数有效性
        require(progress in 0..100) { "Progress must be between 0 and 100" }
        require(speed >= 0) { "Speed must be non-negative" }
        require(remainingTime >= 0) { "Remaining time must be non-negative" }
    }
}